include_directories(${PROJECT_BINARY_DIR}/src/app)
include_directories(${PROJECT_SOURCE_DIR}/src/gui)
include_directories(${PROJECT_SOURCE_DIR}/src/3rdParty)

set(HIM_APP_SRCS
    globaldefinition.h
    globaldefinition.cpp

    osg/basenode.h
    osg/basenode.cpp
    osg/osgdatamanager.h
    osg/osgdatamanager.cpp
    osg/modelnode.h
    osg/modelnode.cpp
    osg/slicenode.h
    osg/slicenode.cpp

    slice/cliread.h
    slice/cliread.cpp
    slice/CliDefinition.h
    slice/layer.h
    slice/layer.cpp

    mongo/MongoDBDefine.h
    mongo/mongoagent.cpp
    mongo/mongoagent.h
    mongo/userdata.cpp
    mongo/userdata.h

    plc/plcconnecter.h
    plc/plcconnecter.cpp
    plc/plcdataprocess.h
    plc/plcdataprocess.cpp

    safeQueue/atomicops.h
    safeQueue/readerwriterqueue.h

    servo/servoagent.h
    servo/servoagent.cpp

    rtc5/RTC5expl.h
    rtc5/RTC5expl.c
    rtc5/RTC5impl.h
    rtc5/rtc5agent.h
    rtc5/rtc5agent.cpp

    system/systemmonitor.h
    system/systemmonitor.cpp
    system/systemconfig.h
    system/systemconfig.cpp
    system/taskagent.h
    system/taskagent.cpp
    )

add_library(HIMapp  ${HIM_APP_SRCS})
target_link_libraries(HIMapp HIMosg HIMmongodb HIMmodbus HIMsoem RTC5DLLx64.lib Qt5::Core Qt5::Network)
